import request from '@/utils/request'

// 查询表单草稿列表
export function listDraft(query) {
  return request({
    url: '/flowable/draft/list',
    method: 'get',
    params: query
  })
}

// 查询表单草稿详细
export function getDraft(draftId) {
  return request({
    url: '/flowable/draft/' + draftId,
    method: 'get'
  })
}

// 新增表单草稿
export function addDraft(data) {
  return request({
    url: '/flowable/draft',
    method: 'post',
    data: data
  })
}

// 删除表单草稿
export function delDraft(draftId) {
  return request({
    url: '/flowable/draft/' + draftId,
    method: 'delete'
  })
}
